package org.xyl.dto;

import java.util.List;

/**
 * 诊断响应DTO
 */
public class DiagnosisResponse {
    private String deviceId;
    private String status;
    private List<Problem> problems;
    private List<Solution> solutions;
    private String confidenceScore;
    
    /**
     * 问题类
     */
    public static class Problem {
        private String problemCode;
        private String problemDescription;
        private String severity;
        private double confidence;
        
        // Getters and Setters
        public String getProblemCode() {
            return problemCode;
        }
        
        public void setProblemCode(String problemCode) {
            this.problemCode = problemCode;
        }
        
        public String getProblemDescription() {
            return problemDescription;
        }
        
        public void setProblemDescription(String problemDescription) {
            this.problemDescription = problemDescription;
        }
        
        public String getSeverity() {
            return severity;
        }
        
        public void setSeverity(String severity) {
            this.severity = severity;
        }
        
        public double getConfidence() {
            return confidence;
        }
        
        public void setConfidence(double confidence) {
            this.confidence = confidence;
        }
    }
    
    /**
     * 解决方案类
     */
    public static class Solution {
        private String solutionId;
        private String description;
        private String steps;
        private String source;
        private String sourceUrl;
        
        // Getters and Setters
        public String getSolutionId() {
            return solutionId;
        }
        
        public void setSolutionId(String solutionId) {
            this.solutionId = solutionId;
        }
        
        public String getDescription() {
            return description;
        }
        
        public void setDescription(String description) {
            this.description = description;
        }
        
        public String getSteps() {
            return steps;
        }
        
        public void setSteps(String steps) {
            this.steps = steps;
        }
        
        public String getSource() {
            return source;
        }
        
        public void setSource(String source) {
            this.source = source;
        }
        
        public String getSourceUrl() {
            return sourceUrl;
        }
        
        public void setSourceUrl(String sourceUrl) {
            this.sourceUrl = sourceUrl;
        }
    }
    
    // Getters and Setters
    public String getDeviceId() {
        return deviceId;
    }
    
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public List<Problem> getProblems() {
        return problems;
    }
    
    public void setProblems(List<Problem> problems) {
        this.problems = problems;
    }
    
    public List<Solution> getSolutions() {
        return solutions;
    }
    
    public void setSolutions(List<Solution> solutions) {
        this.solutions = solutions;
    }
    
    public String getConfidenceScore() {
        return confidenceScore;
    }
    
    public void setConfidenceScore(String confidenceScore) {
        this.confidenceScore = confidenceScore;
    }
}